package com.yan.yjhTest.test;

import java.util.ArrayList;

import org.apache.commons.lang.StringUtils;

/**
 * list转String
 * @author yan
 *
 */
public class List2String {
	public static void main(String[] args) {
		ArrayList<String> list = new ArrayList<String>();
		list.add("one");
		list.add("two");
		list.add("three");
		String str = StringUtils.join(list.toArray(), ",");
		System.out.println(str);//输出one,two,three
	}
}
